package cn.lf.mapper;

import cn.lf.dto.api.order.UserOrderDetailRepDTO;
import cn.lf.dto.api.order.UserOrderInfoGetRepDTO;
import cn.lf.dto.sys.order.OrderInfoGetRepDTO;
import cn.lf.dto.sys.order.OrderInfoSingleDTO;
import cn.lf.entity.OrderDetailInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author guoyy
 * @since 2024-04-08
 */
public interface OrderDetailInfoMapper extends BaseMapper<OrderDetailInfo> {

    /**
     * 根据订单id查询页面展示的订单的产品信息
     * @param orderId
     * @return
     */
    List<OrderInfoGetRepDTO.OrderProductInfo> selectOrderProductInfo(String orderId);

    /**
     *
     * @param orderId
     * @return
     */
    List<OrderInfoSingleDTO.ProductInfo> selectOisProductList(String orderId);

    /**
     *
     * @param orderId
     * @return
     */
    List<UserOrderInfoGetRepDTO.ProductInfo> selectUserOdiList(String orderId);

    /**
     *
     * @param orderId
     * @return
     */
    List<UserOrderDetailRepDTO.ProductInfo> selectUserOdOdiList(String orderId);
}
